package com.task.common.entity.custom;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Huzz
 * @since 2022-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("bs_task")
@ExcelTarget("Task")
@ApiModel(value = "Task对象", description = "")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "ID")
    @TableId(type = IdType.AUTO)
    @Excel(name = "id")
    private Integer id;

    @ApiModelProperty(value = "任务名称")
    @Excel(name = "任务名称")
    private String name;

    @ApiModelProperty(value = "(0:新建,1进行中,2挂起,3取消,4结束)")
    @Excel(name = "状态")
    private Integer status;

    @ApiModelProperty(value = "任务描述")
    @Excel(name = "任务描述")
    private String description;

    @ApiModelProperty(value = "所属项目")
    @Excel(name = "所属项目")
    private Integer itemId;

    @ApiModelProperty(value = "负责人")
    @Excel(name = "负责人")
    private String principalId;

    @ApiModelProperty(value = "开始时间")
    @Excel(name = "开始时间", format = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @Excel(name = "结束时间", format = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "进度")
    @Excel(name = "进度")
    private Integer schedule;

    @ApiModelProperty(value = "完成时间")
    @Excel(name = "完成时间")
    private Date finishedTime;

    @ApiModelProperty(value = "优先级(1:important, 2:secondary,3:generally)")
    @Excel(name = "优先级")
    private Integer priority;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "修改时间")
    private Date updatedTime;

    @ApiModelProperty(value = "创建人id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改人id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "1删除, 0未删除")
    @TableLogic
    private Integer del;


}
